Skip to content

Imperative programming language that brings love by its simplicity.

Notifications You must be signed in to change notification settings

thomasvergne/love

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Love Programming Language

A simple imperative programming language which will bring love to your life!


func main() {
  print("Hello, world!")
}

Status GitHub Issues GitHub Pull Requests License

Modern features

  • Dynamically typed for easy prototyping
  • Functional features for efficient programming
  • Object implementation for basic and easy object-oriented use
  • Easy syntax for easy learning
  • And much more...

Some examples of Love

Variables

x := 6
print(x)
x = 2
print(x)

Functions

Functions extend from functional programming as there are lambdas (AKA anonymous functions) and closures.

func add(x, y) x + y
func sub(x, y) {
  return x - y
}

main := func() {
  print(add(5, sub(2, 3)))
}

Structures

Structures are the way to do some object-oriented programming in the language. They are similar to javascript objects.

person := struct {
  name: "John Doe",
  age: 37
}
print(person.name)

About

Imperative programming language that brings love by its simplicity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published