Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

.

Name: Anonymous 2012-02-03 21:40

There are no good C-like interpreted languages, /prog/. I plan to design a new language with the following features:

* C-like in syntax
* statically typed, not dynamically typed
* strongly typed, not weakly typed
* interpreted in the main implementation, but compilers are possible
* functions are first class objects
* classes, none of that duck typing shit
* basic data structures like vectors, lists, etc. are included, unlike in C
* templates for generic programming

Name: Anonymous 2012-02-03 21:47

Feel free to comment along the way as I ramble about various ideas for the language.

Types

In C, all the basic integral types are defined as a certain minimum of bits or greater (e.g. int is defined as a signed integer at least 16 bits wide). In this new language, all the integral types will follow the C99 fixed types convention, without the _t. That is, int8, uint8, int16, uint16, etc.

Floating point types will be named float32, float64, etc.

I might choose to include things like static storage duration and other variable modifiers like in C. Everything is on the heap though, and garbage collected.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List