Tim Whiting

Results 453 comments of Tim Whiting

I've found a bug with this. Specifically, it behaves poorly with exceptions. Note that this doesn't affect all of the other vector functions, just the mutation of vector elements in...

Superceeded by #716 and #762

One advantage of this approach is it doesn't do any dynamic dispatch or anything special, it is just an extension of the current implicits and static overloading. We could even...

I like the idea of no starting character, and I do think braces are a good choice but I wonder if we could still a shorter ` for times where...

``` val err = Error("problem") "Result: ""; Error(err) -> "Error! `err"}>" ``` ``` val err = Error("problem") "Result: |match err { Ok() -> ""; Error(err) -> "Error! `err"}|" ``` The...

@chtenb I like the idea, maybe we have a definition like: ``` // delimit-start, delimit-end, simple-identifier pub interpolator debug [,$] // you can omit allowing simple identifiers, and you can...

With configurable delimiters you could even do lisp/scheme style quoting. :) ``` scheme"(eval ,(list.map(do-something)))" ```

@kuchta Of course, I was thinking about string interpolation specific to this issue, not saying that AST is bad, but one heavily used use case for advanced string interpolation would...

Back to the issue though: I realized a major flaw with allowing user configurable interpolation delimiters. Due to nested strings / interpolation, you have to resolve this at lexing time,...

@kuchta By the way #533 was just merged, and Daan is planning on releasing a new version of Koka soon, so you can add named arguments when using trailing lambdas.