mirror of
https://github.com/janet-lang/janet
synced 2025-11-17 15:57:12 +00:00
Rename 'get' opcode to 'in', add new 'get' opcode.
This makes the names of the opcodes match their implied functionality. We also rename the C functions to match the opcodes and source level functionality.
This commit is contained in:
@@ -156,7 +156,7 @@ bad:
|
||||
}
|
||||
|
||||
/* Gets a value and returns. Can panic. */
|
||||
Janet janet_get(Janet ds, Janet key) {
|
||||
Janet janet_in(Janet ds, Janet key) {
|
||||
Janet value;
|
||||
switch (janet_type(ds)) {
|
||||
default:
|
||||
@@ -207,7 +207,7 @@ Janet janet_get(Janet ds, Janet key) {
|
||||
return value;
|
||||
}
|
||||
|
||||
Janet janet_get_permissive(Janet ds, Janet key) {
|
||||
Janet janet_get(Janet ds, Janet key) {
|
||||
JanetType t = janet_type(ds);
|
||||
switch (t) {
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user