Rename macros $ref to ref #474
Closed
bomzj
started this conversation in
RFC Discussions
Replies: 2 comments
-
Wouldn't it clash with already existing For example, given the following snippet: let x = ref(1)
useSomething(x) Should the compiler translate the second line to |
Beta Was this translation helpful? Give feedback.
0 replies
-
本来就是为了区分 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem does this feature solve?
Regarding #420
For consistency sake, rename
$ref
toref
in order to have the same naming convention as other macros have e.g.defineProps
,defineEmits
. They are not prefixed with ugly$
sign coming from jquery/php, 'Hungarian' notations or other $$$ rich code.I know that $ref is experimental, just would like you to consider this once you decide to adopt an approach to reactivity transformation.
What does the proposed API look like?
Old way
New way
Beta Was this translation helpful? Give feedback.
All reactions