Oscar Campbell

Results 353 comments of Oscar Campbell

I do indeed use the infix notation when coding in LiveScript, it's simple and nice. I like the idea of the suffix notation. It could of course be changed to...

> also .method(..) calls are kind of like faking infix notation aswell and this is why D-style UFCS is so nice IMO. [3,2,3].order_by((x)->x).filter((x)->x%2==1).sum() . I completely agree on this one....

https://github.com/rose-compiler/rose - rosecompiler might prove handy for the task. There is frontends (parse to AST) for many languages (C++) included. Then there's a bunch of middleends [sic] for working on...

Yeah, LiveScript does it too - a must have feature :-)

> foreach items, (x) -> > // ... code using x... Ah yeah, that's how you'd do it in LS, no special exception powdering, just a clean common func (closure)...

I've used this all the time in LS, but there's this one thing that's always nagged me about it: The assymetry of the notation - I find it often is...

Yeah, the `where` clauses from Haskell is neat, would also be for making localized functions etc. Generally. In the case of the interpolations, I mean ofcourse it should interpolate variables...

Definitely! Tuples implement the [] operator right? If so, case closed :) (In this case of using C++ as target-"assembly"-language instead of say LLVM-IR)

Please upload your idea too. I've coded cpp, perl, JS transpilers etc. since 1999, in-house and hack-state use only (for use in in-house projects). But I'm getting more and more...

The way I see it, C++ is as good, or better actually, an intermediary language as LLVM IR, or any other representation, for many reason. I'll elaborate in a ticket...