top | item 18025154 (no title) sondh | 7 years ago > Infact, apart from SQORN, I’ve never seen this syntax used elsewhere.https://www.styled-components.com maybe? discuss order hn newest alephnan|7 years ago Also,https://polymer.github.io/lit-htmlhttps://github.com/WebReflection/hyperHTML noonat|7 years ago https://observablehq.com also uses this to great effect. phs2501|7 years ago https://github.com/bdowning/sql-assassin is something I wrote for myself that is very similar to SQORN and uses templates for the same reason.I've also used them for DSLs, i.e. the following grammar compiler (where the actions are literal functions defined in the grammar string as follows), sadly never released:https://gist.github.com/bdowning/4dca9f006f230bc7e8c18a2b9c9... wongarsu|7 years ago https://github.com/apollographql/graphql-tag gyrgtyn|7 years ago https://github.com/choojs/nanohtml abecedarius|7 years ago https://github.com/erights/quasiParserGenerator kamac|7 years ago facebook's relay uses it to find and compile graphql querieshttps://facebook.github.io/relay/docs/en/query-renderer.html chris_mc|7 years ago Nim: https://forum.nim-lang.org/t/3046You can do almost anything with Nim, for function calls! I personally like UFCS (Uniform Function Call Syntax), aka: let something: int = item.function(arg2, arg3,...).function.function(vararg).etc
alephnan|7 years ago Also,https://polymer.github.io/lit-htmlhttps://github.com/WebReflection/hyperHTML
phs2501|7 years ago https://github.com/bdowning/sql-assassin is something I wrote for myself that is very similar to SQORN and uses templates for the same reason.I've also used them for DSLs, i.e. the following grammar compiler (where the actions are literal functions defined in the grammar string as follows), sadly never released:https://gist.github.com/bdowning/4dca9f006f230bc7e8c18a2b9c9...
kamac|7 years ago facebook's relay uses it to find and compile graphql querieshttps://facebook.github.io/relay/docs/en/query-renderer.html
chris_mc|7 years ago Nim: https://forum.nim-lang.org/t/3046You can do almost anything with Nim, for function calls! I personally like UFCS (Uniform Function Call Syntax), aka: let something: int = item.function(arg2, arg3,...).function.function(vararg).etc
alephnan|7 years ago
https://polymer.github.io/lit-html
https://github.com/WebReflection/hyperHTML
noonat|7 years ago
phs2501|7 years ago
I've also used them for DSLs, i.e. the following grammar compiler (where the actions are literal functions defined in the grammar string as follows), sadly never released:
https://gist.github.com/bdowning/4dca9f006f230bc7e8c18a2b9c9...
wongarsu|7 years ago
gyrgtyn|7 years ago
abecedarius|7 years ago
kamac|7 years ago
https://facebook.github.io/relay/docs/en/query-renderer.html
chris_mc|7 years ago
You can do almost anything with Nim, for function calls! I personally like UFCS (Uniform Function Call Syntax), aka: