Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

ref type and mut type #62

Open
ryo33 opened this issue Jan 10, 2023 · 0 comments
Open

ref type and mut type #62

ryo33 opened this issue Jan 10, 2023 · 0 comments

Comments

@ryo33
Copy link
Member

ryo33 commented Jan 10, 2023

'ref type is something like a Arc<T> and 'mut type is something like a Arc<Mutex<T>>.

Syntax

<'ref 'nat> 'ref 1
$ <'mut 'nat> 'mut 1;
// update the value
'mutate & 'mut 'nat & \ 'nat -> 'nat
@ryo33 ryo33 changed the title Ref type and Mut type ref type and mut type Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant