# goal **Repository Path**: mirrors_deckar01/goal ## Basic Information - **Project Name**: goal - **Description**: g()()()()('al') → "gooooal" - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # g()('al') `g()('al')` is a challenge whereby you need to write in as many languages as possible code which enables the code `g()('al')` to return the string "goal", the code `g()()('al')` to return the string "gooal", the code `g()()()('al')` return the string "goooal", etc. ## Rules 1. *You are encouraged to break the rules, cleverly.* 2. When executed, the solution must print "goal" with sufficient o's to demonstrate the program's functionality. 11. The code `g()('al')` must appear in the source. 1. `g()('al')` must not be a string literal. 2. `'al'` must be a string, or your language's equivalent thereof. You may use your language's standard method of creating a string (e.x. C should use `"`, ruby may use either `"` or `'`). 7. `g()('al')` may not print the string. If returning a string cannot be done in your language, you should submit rationale as to why this is impossible for a solution which prints a string to be accepted. 642. You must be able to insert an infinite number of `()` calls without modification to your solution. Therefore solutions like [this][c-inc-soln3] are incorrect. 9. `g()('al')` must be a valid [rvalue] if applicable in your language. 14. `g('al')` must return `"gal"`. 12. If you have a solution that is close, but does not meet these rules, submit it anyway. A close and interesting solution is better than no solution. ### Previous Solutions The more exciting solutions are original, not applying techniques that have already been discovered. The following generally applicable techniques have already been discovered: * [Self-modifying code][c-inc-soln1] ## Languages | | Solved | Likely Possible | Likely Impossible | Impossible | |:-------------:|:-------------------:|:---------------:|:-----------------:|:-----------------------:| | C | [•][c-soln1] | | | | | C++ | [•][c++-soln1] | | | | | Go | [•][go-soln] | | | | | Haskell | [•][hs-soln1] | | | | | Java | | | | [•][java-nonsoln1] | | JavaScript | [•][js-soln2] | | | | | Python | [•][py-soln1] | | | | | R | [•][r-soln1] | | | | | Ruby | | | | [•][rb-nonsoln1] | | SH | | | • | | | BASH | | | • | | | ZSH | | | • | | Help out, add some more languages! [c-soln1]: https://github.com/eatnumber1/goal/tree/master/solutions/complete/c/soln1 [c-inc-soln1]: https://github.com/eatnumber1/goal/tree/master/solutions/incomplete/c/soln1 [c-inc-soln3]: https://github.com/eatnumber1/goal/tree/master/solutions/incomplete/c/soln3 [c++-soln1]: https://github.com/eatnumber1/goal/tree/master/solutions/complete/c++/soln1 [go-soln]: https://github.com/eatnumber1/goal/tree/master/solutions/complete/go/soln1 [hs-soln1]: https://github.com/eatnumber1/goal/tree/master/solutions/complete/haskell/soln1 [js-soln2]: https://github.com/eatnumber1/goal/tree/master/solutions/complete/javascript/soln2 [py-soln1]: https://github.com/eatnumber1/goal/tree/master/solutions/complete/python/soln1 [r-soln1]: https://github.com/eatnumber1/goal/tree/master/solutions/complete/r/soln1 [rb-nonsoln1]: https://github.com/eatnumber1/goal/tree/master/non-solutions/ruby/nonsoln1 [java-nonsoln1]: https://github.com/eatnumber1/goal/tree/master/non-solutions/java/nonsoln1 [rvalue]: http://en.wikipedia.org/wiki/Value_(computer_science)#lrvalue