Get rid of my name from TODOs. Anyone can do them.

This commit is contained in:
Bob Nystrom
2013-12-14 15:28:18 -08:00
parent 5c807c0ec5
commit 7fe60499db
38 changed files with 171 additions and 171 deletions

View File

@ -14,6 +14,6 @@
}
}
// TODO(bob): Closing over this.
// TODO(bob): Close over fn/method parameter.
// TODO(bob): Maximum number of closed-over variables (directly and/or indirect).
// TODO: Closing over this.
// TODO: Close over fn/method parameter.
// TODO: Maximum number of closed-over variables (directly and/or indirect).

View File

@ -1,5 +1,5 @@
var global = "global"
// TODO(bob): Forward reference to global declared after use.
// TODO: Forward reference to global declared after use.
fn {
io.write(global) // expect: global

View File

@ -1,5 +1,5 @@
var global = "global"
// TODO(bob): Forward reference to global declared after use.
// TODO: Forward reference to global declared after use.
class Foo {
method {

View File

@ -6,6 +6,6 @@
// Other stuff: ឃᢆ᯽₪ℜ↩⊗┺░
// Emoji: ☃☺♣
// TODO(bob): What about combining characters?
// TODO: What about combining characters?
io.write("ok") // expect: ok

View File

@ -7,5 +7,5 @@ var foo = Foo.new
io.write(foo is Foo) // expect: true
io.write(foo.toString) // expect: Foo
// TODO(bob): Test that class doesn't get default constructor if it has an
// explicit one.
// TODO: Test that class doesn't get default constructor if it has an explicit
// one.

View File

@ -1,5 +1,5 @@
class Foo {
// TODO(bob): Do we want to require an explicit "new" here?
// TODO: Do we want to require an explicit "new" here?
this new { io.write("zero") }
this new(a) { io.write(a) }
this new(a, b) { io.write(a + b) }

View File

@ -24,7 +24,7 @@ foo.write
// expect: 4
// expect: 5
// TODO(bob): Inherited fields.
// TODO(bob): Trying to get or set a field outside of a class.
// TODO(bob): Fields in nested classes.
// TODO(bob): Closing over fields.
// TODO: Inherited fields.
// TODO: Trying to get or set a field outside of a class.
// TODO: Fields in nested classes.
// TODO: Closing over fields.

View File

@ -1,7 +1,7 @@
// Single expression body.
(fn io.write("ok")).call // expect: ok
// TODO(bob): Precedence of fn body.
// TODO: Precedence of fn body.
// Curly body.
fn {
@ -29,5 +29,3 @@ fn {
}.call
// TODO(bob): Arguments.

View File

@ -1,4 +1,3 @@
// * has higher precedence than +.
io.write(2 + 3 * 4) // expect: 14
@ -26,7 +25,7 @@ io.write(false == 1 >= 2) // expect: true
// Unary - has lower precedence than ..
io.write(-"abc".count) // expect: -3
// TODO(bob): %, associativity.
// TODO: %, associativity.
// Using () for grouping.
io.write((2 * (6 - (2 + 2)))) // expect: 4

View File

@ -20,8 +20,8 @@ bar.method(1, 2) // expect: bar
bar.method(1, 2, 3) // expect: foo
bar.method(1, 2, 3, 4) // expect: bar
// TODO(bob): Overriding (or BETA-style refining?).
// TODO(bob): Private fields.
// TODO(bob): Super (or inner) calls.
// TODO(bob): Grammar for what expressions can follow "is".
// TODO(bob): Prevent extending built-in types.
// TODO: Overriding.
// TODO: Private fields.
// TODO: Super (or inner) calls.
// TODO: Grammar for what expressions can follow "is".
// TODO: Prevent extending built-in types.

View File

@ -20,6 +20,6 @@ io.write((fn 1) is Object) // expect: true
io.write("s" is Object) // expect: true
io.write(123 is Object) // expect: true
// TODO(bob): Non-class on RHS.
// TODO(bob): Precedence and associativity.
// TODO(bob): Metaclasses ("Num is Class").
// TODO: Non-class on RHS.
// TODO: Precedence and associativity.
// TODO: Metaclasses ("Num is Class").

View File

@ -2,6 +2,6 @@ io.write([].count) // expect: 0
io.write([1].count) // expect: 1
io.write([1, 2, 3, 4].count) // expect: 4
// TODO(bob): Literal syntax, including newline handling.
// TODO(bob): Unterminated list literal.
// TODO(bob): Subscript operator.
// TODO: Literal syntax, including newline handling.
// TODO: Unterminated list literal.
// TODO: Subscript operator.

View File

@ -1,5 +1,5 @@
// TODO(bob): What happens if the index isn't an integer?
// TODO(bob): Out of bounds.
// TODO: What happens if the index isn't an integer?
// TODO: Out of bounds.
// Add to empty list.
var a = []

View File

@ -24,7 +24,7 @@ f.removeAt(-1)
io.write(f) // expect: [1, 2]
// Out of bounds.
// TODO(bob): Signal error in better way.
// TODO: Signal error in better way.
io.write([1, 2, 3].removeAt(3)) // expect: null
io.write([1, 2, 3].removeAt(-4)) // expect: null

View File

@ -12,14 +12,14 @@ io.write(list[-2]) // expect: c
io.write(list[-1]) // expect: d
// Handle out of bounds.
// TODO(bob): Should halt the fiber or raise an error somehow.
// TODO: Should halt the fiber or raise an error somehow.
io.write(list[4]) // expect: null
io.write(list[-5]) // expect: null
// Handle wrong argument type.
// TODO(bob): Should halt the fiber or raise an error somehow.
// TODO: Should halt the fiber or raise an error somehow.
io.write(list[true]) // expect: null
// Handle non-integer index.
// TODO(bob): Should halt the fiber or raise an error somehow.
// TODO: Should halt the fiber or raise an error somehow.
io.write(list[1.5]) // expect: null

View File

@ -6,7 +6,7 @@ io.write(~23) // expect: 4294967272
io.write(~4294967295) // expect: 0
// Past max u32 value.
// TODO(bob): Is this right?
// TODO: Is this right?
io.write(~4294967296) // expect: 4294967295
// Negative numbers.

View File

@ -14,5 +14,5 @@ io.write(1 >= 2) // expect: false
io.write(2 >= 2) // expect: true
io.write(2 >= 1) // expect: true
// TODO(bob): Wrong type for RHS.
// TODO(bob): Comparing zero and negative zero.
// TODO: Wrong type for RHS.
// TODO: Comparing zero and negative zero.

View File

@ -1,5 +1,5 @@
io.write(8 / 2) // expect: 4
io.write(12.34 / -0.4) // expect: -30.85
// TODO(bob): Unsupported RHS types.
// TODO(bob): Divide by zero.
// TODO: Unsupported RHS types.
// TODO: Divide by zero.

View File

@ -6,5 +6,5 @@ io.write(-0) // expect: -0
io.write(123.456) // expect: 123.456
io.write(-0.001) // expect: -0.001
// TODO(bob): Hex? Scientific notation?
// TODO(bob): Literals at and beyond numeric limits.
// TODO: Hex? Scientific notation?
// TODO: Literals at and beyond numeric limits.

View File

@ -7,4 +7,4 @@ io.write(3 - 2 - 1) // expect: 0
var a = 3
io.write(-a) // expect: -3
// TODO(bob): Unsupported RHS types.
// TODO: Unsupported RHS types.

View File

@ -10,5 +10,5 @@ io.write(-4.2 % -3.1) // expect: -1.1
// Left associative.
io.write(13 % 7 % 4) // expect: 2
// TODO(bob): Unsupported RHS types.
// TODO(bob): Error on mod by zero.
// TODO: Unsupported RHS types.
// TODO: Error on mod by zero.

View File

@ -1,4 +1,4 @@
io.write(5 * 3) // expect: 15
io.write(12.34 * 0.3) // expect: 3.702
// TODO(bob): Unsupported RHS types.
// TODO: Unsupported RHS types.

View File

@ -2,4 +2,4 @@ io.write(1 + 2) // expect: 3
io.write(12.34 + 0.13) // expect: 12.47
io.write(3 + 5 + 2) // expect: 10
// TODO(bob): Unsupported RHS types.
// TODO: Unsupported RHS types.

View File

@ -5,4 +5,4 @@ io.write("something".contains("some")) // expect: true
io.write("something".contains("ing")) // expect: true
io.write("something".contains("math")) // expect: false
// TODO(bob): Passing non-string as argument.
// TODO: Passing non-string as argument.

View File

@ -4,5 +4,5 @@ io.write("\\") // expect: \
io.write("(\n)") // expect: (
// expect: )
// TODO(bob): Non-printing escapes like \t.
// TODO(bob): Unicode escape sequences.
// TODO: Non-printing escapes like \t.
// TODO: Unicode escape sequences.

View File

@ -11,14 +11,14 @@ io.write("abcd"[-2]) // expect: c
io.write("abcd"[-1]) // expect: d
// Handle out of bounds.
// TODO(bob): Should halt the fiber or raise an error somehow.
// TODO: Should halt the fiber or raise an error somehow.
io.write("abcd"[4]) // expect: null
io.write("abcd"[-5]) // expect: null
// Handle wrong argument type.
// TODO(bob): Should halt the fiber or raise an error somehow.
// TODO: Should halt the fiber or raise an error somehow.
io.write("abcd"[true]) // expect: null
// Handle non-integer index.
// TODO(bob): Should halt the fiber or raise an error somehow.
// TODO: Should halt the fiber or raise an error somehow.
io.write("abcd"[1.5]) // expect: null

View File

@ -15,8 +15,8 @@ Derived.new.bar
// expect: Derived.bar
// expect: Base.foo
// TODO(bob): Super constructor calls.
// TODO(bob): Super operator calls.
// TODO(bob): Calling super outside of a class.
// TODO(bob): Super calls inside nested functions in methods.
// TODO(bob): Super where there is no inherited method.
// TODO: Super constructor calls.
// TODO: Super operator calls.
// TODO: Calling super outside of a class.
// TODO: Super calls inside nested functions in methods.
// TODO: Super where there is no inherited method.