Draft:Kraber
Submission declined on 16 April 2024 by Dan arndt (talk). This submission is not adequately supported by reliable sources. Reliable sources are required so that information can be verified. If you need help with referencing, please see Referencing for beginners and Citing sources.
Where to get help
How to improve a draft
You can also browse Wikipedia:Featured articles and Wikipedia:Good articles to find examples of Wikipedia's best writing on topics similar to your proposed article. Improving your odds of a speedy review To improve your odds of a faster review, tag your draft with relevant WikiProject tags using the button below. This will let reviewers know a new draft has been submitted in their area of interest. For instance, if you wrote about a female astronomer, you would want to add the Biography, Astronomy, and Women scientists tags. Editor resources
|
Kraber is an interpreted programming language written in Rust. It provides minimal language features but has a syntax very close to natural language.
Syntax
[edit]The syntax is verbose compared to other languages and is heavily inspired by Rust and Scratch.
Variable Declaration
[edit]Variables must be declared with a type but initialization is impossible. All variables are mutable.
declare number as whole
set number to 0
Loops
[edit]The only loop available is the while loop. An if statement can be implemented by setting the condition of the while loop to false
.
declare x as boolean
set x to true
while x
{
"x is true"
set x to nand(x x)
}
"x is false"
- in-depth (not just passing mentions about the subject)
- reliable
- secondary
- independent of the subject
Make sure you add references that meet these criteria before resubmitting. Learn about mistakes to avoid when addressing this issue. If no additional references exist, the subject is not suitable for Wikipedia.