dlOuOlb / Pointerless

Passed by value or reference? Not that obvious in a pointerless language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pointerless Ambiguity

There are many languages which do not reveal pointers directly to the programmers.

That is not a defect. That is an intentionally designed feature. But...

var ValOrRef = new Quiz.StructOrClass();

Mutate(Who: ValOrRef);

Is that variable a value or a reference? Has it changed its internal state or not?

It depends on the context. Without pointer notation, it is not obvious at a glance #.

One should check # whether the type is declared as plain-old-struct or nullable-class.

Yeah, passing by "ref" is a very trivial job, but it feels not that elegant...

Is there any better language design?

About

Passed by value or reference? Not that obvious in a pointerless language.

License:Creative Commons Zero v1.0 Universal


Languages

Language:C# 100.0%