One really cool thing about J is how you filter: to filter array y with function f, you write `(f y) # y`. First `(f y)` produces a sieve (like `1 0 1 0 0 1`), then you apply it with `#`. This means the sieve is treated as a core abstraction, which has all sorts of cool uses.
What are your thoughts on making them curly in the presentation layer only? Is there semantic value?
-
-
The semantic value is that the opening and closing quotes are different tokens. You could write "this is a "nested string"" without escaping. You'd still need escaping, just less often.
-
Agreed – the ( ) v. just | analogy is definitely imperfect but I think it clarifies things. We could have just | and render it as ( and ) in the presentation layer – it wouldn’t be a disaster – but think of the little affordances we’d lose and the edge cases we’d add.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.