SugarCpp icon indicating copy to clipboard operation
SugarCpp copied to clipboard

SugarCpp is a language which can compile to C++11.

Results 32 SugarCpp issues
Sort by recently updated
recently updated
newest added

The readme says that SugarCpp was going to become self-hosting. The last commit was 7 months ago. What's the status of this project?

Would you consider freeing up the 'to' keyword by copying 'Swift'/ 'rusts' style syntax for ranges ... is an operator creating an inclusive range e.g. `0...9` yields `[0,1,2,3,4,5,6,7,8,9]` ..< is...

Basically, replace: ``` c++ auto c = ({ forward_list _t_return_value; for (auto i = 1; i

I find the function declaration style of return value last, after an arrow, very intuitive, descibing the flow clearly. In C++11 the style was adopted too. Albeit, the required auto...

enhancement

A cool idea would be to be able to overload "invented" operators, perhaps anything in utf-8 that doesn't clash with the basic operators. Let's say: ``` Test (§) (a: const...

are you considering auto-translation from C++ to SugarCpp (not necaserily everything); I'm after such a tool for my experiment - I haven't started one, but have some earlier attempts at...

Pattern matching can match **type** and value. Here is what it look like. ``` c++ case class Expr case class Number(value:T): Expr case class ExprBin(op:string, l:Expr, r:Expr): Expr double eval(expr:...

enhancement

one thing i'm after is rusts' old do notation which I think was inspired by ruby? it's good for internal iterators & hence parallelizable code.. makes it look natural Rust...

In ruby we can format string in this way: ``` ruby k = 123 str = "x=#{k+1}" ``` So in SugarCpp, we can just write this ``` c++ import "iostream"...

enhancement