ghost
ghost copied to clipboard
The Ghost Programming Language
Currently, if using a `return` within a `while` loop, nothing happens. For example, the follow doesn't work when returning the `pivot` value directly: ```dart function search(numbers, value) { left =...
Side effects should be considered a code smell - currently, when importing a module, if it is not specified _what_ you want from the module, it will effectively load and...
Regular expressions can be passed through as strings. ```typescript pattern = "i need (.*)" ``` Let's support a native representation for regular expressions instead: ```typescript pattern = /i need (.*)/g...
Finding matches within a string currently feels backwards: ```typescript Ghost (1.0-beta.1) Press Ctrl + C to exit >> pattern = "i need (.*)" >> pattern.find("I need coffee".toLowerCase()) coffee ``` I...
When evaluating `0.4` the evaluation is correct. When evaluating `0 . 4` it seems that the evaluator is treating this as a property and panics: ``` Ghost (1.0-beta.1) Press Ctrl...
Panic is thrown when attempting to divide by `0` 🙃 ``` Ghost (1.0-beta.1) Press Ctrl + C to exit >> 1/0 panic: decimal division by 0 goroutine 1 [running]: github.com/shopspring/decimal.Decimal.QuoRem({0xc0000c6640,...
When running the following: ```typescript 1 + * 2 ``` A panic is thrown by the evaluator: ``` Ghost (1.0-beta.1) Press Ctrl + C to exit >> 1 + *...
Instead of newing up class instances based off a method: ```typescript flight = Flight.new() ``` I think I'd like to explore how most other language new up instances through a...
Prefix with `0x` ```typescript value = 0x54686520 value = 0x71756963 value = 0x6b206272 ```