Language | Adding files from filesystem to the build | How? | Unfinished files break the program? |
---|---|---|---|
Rust | Explicit mod |
declaration | No |
CommonJS | Explicit require |
import | No |
ES6 | Explicit import |
import | No |
Python | Explicit import |
import | No |
Lua (new) | Explicit require |
import | No |
PHP | Explicit require or use via autoload |
import or any use | No |
Perl | Explicit use |
import | No |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This shows how to handle combined short options along with | |
# other long and short options. It does so by splitting them | |
# apart (e.g. 'tar -xvzf ...' -> 'tar -x -v -z -f ...') | |
while test $# -gt 0 | |
do | |
case $1 in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is a reference to the part of the video where the slides are listed: | |
https://www.youtube.com/watch?v=SrKj4hYic5A&feature=youtu.be&t=28m | |
Here are the references: | |
SMITH - Reflection and Semantics in Lisp - 1983 | |
http://www-public.it-sudparis.eu/~gibson/Teaching/CSC7322/ReadingMaterial/Smith84.pdf | |
WAND & FRIEDMAN - The Mystery of the Tower in Lisp - 1986 | |
http://www.cs.indiana.edu/pub/techreports/TR196.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::boxed::Box; | |
use std::option::Option; | |
use std::result::Result; | |
use Maybe::*; | |
#[derive(Debug, PartialEq, Eq)] | |
enum Maybe<T> { | |
Nothing, | |
Just(T), | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct Int(i64); | |
pub struct Add<E>(E,E); | |
pub struct Mul<E>(E,E); | |
trait Evaluate { fn eval(&self) -> i64; } | |
impl Evaluate for Int { fn eval(&self) -> i64 { self.0 } } | |
impl<E> Evaluate for Add<E> where E: Evaluate { fn eval(&self) -> i64 { self.0.eval() + self.1.eval() } } | |
impl<E> Evaluate for Mul<E> where E: Evaluate { fn eval(&self) -> i64 { self.0.eval() * self.1.eval() } } | |
#[test] |