Re: text based file formats

2022-12-21 Thread Walter Bright via Digitalmars-d-announce
On 12/20/2022 1:51 PM, Adrian Matoga wrote: I frequently find it useful for a text data file parser to call a diagnostic callback instead of assuming some default behavior (whether that's forgiving, printing warnings, throwing or something else). With template callback parameters the parser

Re: text based file formats

2022-12-21 Thread Walter Bright via Digitalmars-d-announce
On 12/21/2022 6:27 AM, Adam D Ruppe wrote: On Tuesday, 20 December 2022 at 00:16:57 UTC, Walter Bright wrote: LOL, learn something every day! I've even written my own, but it isn't very good. Yeah, I wrote a csv module too back in... I think 2010, before Phobos had one. It is about 90

Re: text based file formats

2022-12-21 Thread Walter Bright via Digitalmars-d-announce
On 12/20/2022 8:19 PM, 9il wrote: It has already been replaced with [mir.csv](https://github.com/libmir/mir-ion/blob/master/source/mir/csv.d). Mir is faster, SIMD accelerated, and supports numbers and timestamp recognition. Propose this for Phobos?

Re: text based file formats

2022-12-21 Thread Walter Bright via Digitalmars-d-announce
On 12/20/2022 11:46 AM, John Colvin wrote: We use this at work with some light tweaks, it’s done a lot work  Sweet!

Re: text based file formats

2022-12-21 Thread John Colvin via Digitalmars-d-announce
On Wednesday, 21 December 2022 at 04:19:46 UTC, 9il wrote: On Tuesday, 20 December 2022 at 19:46:36 UTC, John Colvin wrote: On Tuesday, 20 December 2022 at 00:40:07 UTC, H. S. Teoh wrote: [...] We use this at work with some light tweaks, it’s done a lot work  It has already been replaced

Re: text based file formats

2022-12-21 Thread Adam D Ruppe via Digitalmars-d-announce
On Tuesday, 20 December 2022 at 00:16:57 UTC, Walter Bright wrote: LOL, learn something every day! I've even written my own, but it isn't very good. Yeah, I wrote a csv module too back in... I think 2010, before Phobos had one. It is about 90 lines, still works. Nothing special but I

Re: text based file formats

2022-12-21 Thread Tejas via Digitalmars-d-announce
On Wednesday, 21 December 2022 at 04:19:46 UTC, 9il wrote: On Tuesday, 20 December 2022 at 19:46:36 UTC, John Colvin wrote: On Tuesday, 20 December 2022 at 00:40:07 UTC, H. S. Teoh wrote: [...] We use this at work with some light tweaks, it’s done a lot work  It has already been replaced

Re: Why am I writing a THIRD text component class?!?

2022-12-21 Thread Hipreme via Digitalmars-d-announce
On Tuesday, 20 December 2022 at 03:05:05 UTC, Adam D Ruppe wrote: Take the bait. Click the link. The answer may surprise you. (ok let's be real, it probably won't surprise you, but you might enjoy the read anyway. then tell me if you guessed the reason correctly or not!!)