Extend your language: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(Omit Insitux)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 3,800:
{{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.
<syntaxhighlight lang="ecmascriptwren">class IfBoth {
construct new(cond1, cond2) {
_cond1 = cond1
9,476

edits