Open DyXel opened 5 days ago
I was thinking about opening a separate issue, but they are all pretty minor and think should fit fine in just this one.
{ }
return
f: (i:int) -> * (:int) -> string = {/*...*/}
(note: allowed in unsafe code only)
clog
std::clog
fprintf
const char*
f"My name is {name}"
<<
std::cout
load_from_disk
x
I was thinking about opening a separate issue, but they are all pretty minor and think should fit fine in just this one.
{ }
) thereturn
is also implicit.f: (i:int) -> * (:int) -> string = {/*...*/}
doesn't actually compile. It reports a problem with the function pointer syntax.(note: allowed in unsafe code only)
, what does this mean? I think it needs to be expanded, and maybe given a concrete example.clog
should bestd::clog
(didn't even know this was a thing), UFCSfprintf
as cool as it looks would never compile, since string interpolation would return something that isn'tconst char*
.f"My name is {name}"
(f-strings).<<
for thestd::cout
s, theload_from_disk
function doesn't initialize buffer butx
.