tokiwa-software / fuzion

The Fuzion Language Implementation
https://fuzion-lang.dev
GNU General Public License v3.0
46 stars 11 forks source link

Add `ref v` expression #1219

Closed fridis closed 2 months ago

fridis commented 1 year ago

See #341 for an example where this is useful. This would enhance the duality of types and expressions, so ref T is the reference type to a value of type T while ref v is a reference to a copy of the value v.

fridis commented 8 months ago

I am no longer sure whether I really want this...

michaellilltokiwa commented 4 months ago

@fridis can this be closed?

fridis commented 2 months ago

Since types ref t no longer exist, we also do not need expressions ref v. Closing this issue.