cobra -correct-source [was: cobra -correct-case]
Posted: Sat Nov 08, 2008 7:02 pm
This option was renamed to -correct-source on 2008-12-25.
See cobra -h for docs.
Cobra is case-sensitive, but now there is a new -correct-case option which will correct the case of types. This means that Cobra writes your source code back with the correction. If you can then set your editor to automatically reload modified files, this should work quite smoothly.
For example, given this source file:
The Cobra compiler will write it back with "String" in place of "string". Same for "object", "point", etc. This only happens if Cobra can locate the capitalized version and if -correct-case was used.
Automatic correction can be used in any situation that is unambiguous. Over time, we can extend this to handle CompoundNames, types in expressions, method names, etc.
If you have any feedback, let me know.
See cobra -h for docs.
Cobra is case-sensitive, but now there is a new -correct-case option which will correct the case of types. This means that Cobra writes your source code back with the correction. If you can then set your editor to automatically reload modified files, this should work quite smoothly.
For example, given this source file:
# Customer.cobra
class Customer
get name from var as string
The Cobra compiler will write it back with "String" in place of "string". Same for "object", "point", etc. This only happens if Cobra can locate the capitalized version and if -correct-case was used.
Automatic correction can be used in any situation that is unambiguous. Over time, we can extend this to handle CompoundNames, types in expressions, method names, etc.
If you have any feedback, let me know.