The New Zyphe Programming Language
I a
Wiki topics:
💻 · Programming
The New Zyphe Programming Language
I am creating a new programming language
https://github.com/YendisFish/Zyphe/
void Main() {
let x: string = "Hi!";
ref y: string = &x;
delete x;
}
struct string {
private ref raw: char[] { get; set; }
let length: int { get; set {} } //empty setter for readonly
this : ref char[] {
get {
return raw;
}
set {} //empty setter to make readonly
}
this : string(ref arr: char[]) {
/*
structs can access their properties like
they are just fields. No matter if they have
empty setter or not. The struct doesnt use
the getters and setters.
*/
raw = arr;
length = arr.length;
}
string CopyTo(ref str: string) {
ref old: char[] = str;
str = this;
free old;
}
}
string PtrToString(let ptr: int /*one day there will be a ptr type*/,
let len: int) {
ref arr: char[] = (ref char[len])ptr; // we can cast values to refs
return new string(arr);
} 메타데이터
- post_id
- 4cd730c2961d
- slug
- the-new-zyphe-programming-language-4cd730c2961d
- url
- https://medium.com/@yendisfish/the-new-zyphe-programming-language-4cd730c2961d
- canonical_url
- https://medium.com/@yendisfish/the-new-zyphe-programming-language-4cd730c2961d
- author_url
- https://medium.com/@yendisfish
- status
- ok
- fetched_at
- 2026-06-09 14:34:10