Comments (4)
@mtkennerly There are some specifically polyfill libraries for that purposes:
https://github.com/Sergio0694/PolySharp
https://github.com/SimonCropp/Polyfill
https://github.com/Tyrrrz/PolyShim
from linguini.
Hi @mtkennerly. Looking at that list of features NotNullWhen
and NotNullWhenAttribute
are nice to haves but not a big deal. That said, I have no idea how you could put it on net4.6
without ReadOnlySpan
and ReadOnlyMemory
those are crucial pieces of the parser and would be very hard to get it working without that.
As for default interfaces those can be fixed. Is there a lib that can emulate ReadOnlySpan
on net4.6
?
from linguini.
Microsoft has some standalone packages that look like they could work:
- https://www.nuget.org/packages/System.Memory/
- supports
net461
- says it provides
System.ReadOnlySpan
andSystem.ReadOnlyMemory
- supports
- https://www.nuget.org/packages/System.Diagnostics.Tools/
- supports
net45
- says it provides
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute
, so it might have the NotNull* ones in that namespace as well, but I'm not sure
- supports
from linguini.
I got Linguini.Shared working with these dependencies and some minor code changes:
<PackageReference Include="IndexRange" Version="1.0.2" />
<PackageReference Include="Nullable" Version="1.3.0" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray" Version="1.0.1" />
I'm working through the errors from the other projects now. I'll report back on how it goes and/or open a PR if I get it working.
from linguini.
Related Issues (13)
- error CS8032 when referencing the library under Mono
- Separate Serialization into its own package
- Add caching to Localization
- Fix `NUMBERS` and `DATETIME` Builtins
- Tracing bundle
- Enable tests for Dotnet 4.6.1 or greater
- Improve docs
- HasMessages does not work with attributes HOT 3
- Add Message Reference (Linguini extension of Fluent)
- Reported line numbers are wrong HOT 1
- Errors differ from Fluent playground HOT 1
- Setup Mono Pipeline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linguini.