nicklockwood / Expression

A cross-platform Swift library for evaluating mathematical expressions at runtime
MIT License
830 stars 51 forks source link

There's now Foundation.Expression #52

Closed nighthawk closed 2 months ago

nighthawk commented 4 months ago

The day has come and this year there's a new addition to Foundation: Foundation.Expression.

That leads to a number of name clashes and for example the test suite doesn't compile due to:

'Expression' is ambiguous for type lookup in this context Found this candidate (Foundation.Expression)

What makes this tricky is that this library itself is called Expression, so you can't disambiguate by say replacing Expression.Error with Expression.Expression.Error.

@nicklockwood Any suggestions for how to best tackle this? Should this library be renamed?

nicklockwood commented 4 months ago

I've added a NumericExpression typealias that you can use as a workaround (see updated README on the develop branch)

nighthawk commented 4 months ago

Great, thank you very much, that works.

nighthawk commented 2 months ago

Fixed in 2bc0d1c15de43be99e2cdb7f5ed2c1d56e2a6417.

engin7 commented 1 month ago

@nicklockwood I'm not able to update cocoa pods to 0.13.9 have you published the pod specs ?

nicklockwood commented 1 month ago

@engin7 sorry about that - try it now