Anonymous user
Talk:Text processing/Max licenses in use: Difference between revisions
Talk:Text processing/Max licenses in use (view source)
Revision as of 03:13, 4 October 2008
, 15 years ago→J
(removed "file exists" assumption) |
(→J) |
||
Line 6:
The J solution makes assumptions to allow the interesting code to stand out (rather than the drudgery). This obviously comes at the cost of some robustness (and, incidentally, optimizes for speed).
* Assumes the format of the file is fixed (
* Does
▲* Does *not* assume the file exists or, if it exists, that it contains any data (i.e. it may be zero bytes long). For example, if the file is empty, you get this:
Maximum simultaneous license use is 0 at the following times:
:Note that I didn't have to do any special checks to get this behavior, it just fell naturally out of the code. (This happens a lot in J.)
|