Extend your language: Difference between revisions
Content added Content deleted
(Omit Insitux) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 3,800: | Line 3,800: | ||
{{trans|Kotlin}} |
{{trans|Kotlin}} |
||
Like Kotlin Wren does not have macros but, using a combination of chained functions and methods, it's possible (if you squint a little) to create something which closely resembles a language extension. |
Like Kotlin Wren does not have macros but, using a combination of chained functions and methods, it's possible (if you squint a little) to create something which closely resembles a language extension. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">class IfBoth { |
||
construct new(cond1, cond2) { |
construct new(cond1, cond2) { |
||
_cond1 = cond1 |
_cond1 = cond1 |