Closed flavius closed 6 years ago
Specifying structured data as strings like this:
$marks = array ( '(1, 1)' => '', '(1, 2)' => '', '(1, 3)' => '', '(2, 1)' => '', '(2, 2)' => '', '(2, 3)' => '', '(3, 1)' => '', '(3, 2)' => '', '(3, 3)' => '' );
is too error-prone.
You've just invented a syntax '(number, number)', in order to parse it again just one step later (in Map::__construct).
Map::__construct
Why not feed into Map data already structured in a way which doesn't need more parsing?
Read all the other issues first to get an idea of alternative approaches.
Specifying structured data as strings like this:
is too error-prone.
You've just invented a syntax '(number, number)', in order to parse it again just one step later (in
Map::__construct
).Why not feed into Map data already structured in a way which doesn't need more parsing?