Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon


Adept - Programming language

< >

Adept is a programming language created in 2018 by Isaac Shelton.

#1161on PLDB 5Years Old 89Users
0Books 0Papers

A blazing fast language for general purpose programming.

Example from the web:
/* For values that use ownership-based memory management (e.g. String, List, Grid) we must transfer ownership if we want to keep them alive for longer than their owner's scope */ import basics func main { everyone <String> List = getEveryoneAttending() each fullname String in everyone { print("=> " + fullname) } } func getEveryoneAttending() <String> List { everyone <String> List person1 String = getFullnameReturnImmediately("Alice", "Golden") person2 String = getFullnameStoreAndThenLaterReturn("Bob", "Johnson") // Commit ownership of strings held by 'person1' and 'person2' // to be managed by the list everyone.add(person1.commit()) everyone.add(person2.commit()) // Commit ownership of the list to the caller return everyone.commit() } func getFullnameReturnImmediately(firstname, lastname String) String { // '.commit()' is not necessary here return firstname + " " + lastname } func getFullnameStoreAndThenLaterReturn(firstname, lastname String) String { fullname String = firstname + " " + lastname // Ownership of the result is held by 'fullname', // so we must transfer ownership to the caller in order // to keep it alive after this function returns // '.commit()' is necessary here return fullname.commit() }
salsa.html 路 adept.html 路 frink.html

View source

- Build the next great programming language Search v2023 Day 205 Docs Acknowledgements Traffic Traffic Today Mirrors GitHub