Re: My RPN calculator code review?

2020-07-18 Thread Dukc via Digitalmars-d-learn
On Friday, 17 July 2020 at 21:37:46 UTC, AB wrote: I'd appreciate your opinions regarding style, mistakes/code smell/bad practice. Thank you. In a project this small, implementability (meaning, ease of writing) is really the main guideline, readability is a non-issue. When your codebase hits

Re: My RPN calculator code review?

2020-07-18 Thread AB via Digitalmars-d-learn
On Saturday, 18 July 2020 at 10:33:23 UTC, Anonymouse wrote: I'm not happy about the looping and allocating replacements of spaced_args, Actually, I got rid of that code entirely in order to support negative values: -5 -6 * == 30

Re: My RPN calculator code review?

2020-07-18 Thread Anonymouse via Digitalmars-d-learn
On Friday, 17 July 2020 at 21:37:46 UTC, AB wrote: Hello, inspired by the "Tiny RPN calculator" example seen on the dlang homepage, I wanted to create my own version. I'd appreciate your opinions regarding style, mistakes/code smell/bad practice. Thank you. I generally don't know what I'm

My RPN calculator code review?

2020-07-17 Thread AB via Digitalmars-d-learn
Hello, inspired by the "Tiny RPN calculator" example seen on the dlang homepage, I wanted to create my own version. I'd appreciate your opinions regarding style, mistakes/code smell/bad practice. Thank you. import std.array; import std.conv; import std.stdio; void